<template>
  <div class="about">
    <div class="site-content">
      <div class="content-warp">
        <div class="login">
          <el-form border="1">
            <h3 class="title">绑定账号</h3>
            <el-form-item>
              <el-button
                type="primary"
                round
              >已有账号</el-button>
            </el-form-item>
            <el-form-item>
              <el-button
                type="success"
                round
              >新账号</el-button>
            </el-form-item>

          </el-form>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import { getqqLoginInfo } from "@/api/index";

export default {
  name: "Login",
  data() {
    return {
      codeUrl: "",
      loading: false,
      redirect: undefined,
      timer: null, // 定时器名称
    };
  },

  created() {},
  methods: {
    doQQLogin() {
      //获取QQ连接
      getqqLoginInfo().then((res) => {
        window.location.href =
          "https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=" +
          res.data.qqAppId +
          "&redirect_uri=" +
          res.data.qqRedirectUri +
          "&state=" +
          res.data.state;
      });
    },
  },
};
</script>


<style rel="stylesheet/scss" lang="scss">
.login {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  margin-top: 100px;
  background-size: cover;
}
.title {
  margin: 0px auto 30px auto;
  text-align: center;
  color: #707070;
}

.login-form {
  border-radius: 6px;
  background: #ffffff;
  width: 400px;
  padding: 25px 25px 5px 25px;
  .el-input {
    height: 38px;
    input {
      height: 38px;
    }
  }
  .input-icon {
    height: 39px;
    width: 14px;
    margin-left: 2px;
  }
}
.login-tip {
  font-size: 13px;
  text-align: center;
  color: #bfbfbf;
}
.login-code {
  width: 33%;
  height: 38px;
  float: right;
  img {
    cursor: pointer;
    vertical-align: middle;
  }
}
.el-login-footer {
  height: 40px;
  line-height: 40px;
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-family: Arial;
  font-size: 12px;
  letter-spacing: 1px;
}
</style>
